<template>
  <div>
    <button @click="btnFn">按钮</button>
  </div>

</template>

<script>
import {getBooks} from './api/books'
export default {
data(){
  return{

  }
},
methods:{
  btnFn(){
    getBooks().then(res=>{
      console.log(res)
    })
  }
}
}
</script>

<style>

</style>